package com.zy.experience_system.repository;

import com.zy.experience_system.entity.ClassInformation;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface ClassInformationRepository extends JpaRepository<ClassInformation,Integer> {
    List<ClassInformation> findAllByTeachId(String teachId);
    @Transactional
    void deleteByClassId(Integer classId);
}
